package com.hx.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.hx.entity.InfoManage;

public interface InfoManageRep extends CrudRepository<InfoManage, Integer>{
	
	@Query("select i from InfoManage i where i.date=:d")
	public List<InfoManage> getInfoByDay(@Param("d") String date);
	
	@Query("select distinct date from InfoManage order by date desc")
	public List<String> getDate();
	
}
